from flask import Flask, Blueprint

from applications.view.goodsfiles.raw import  bp as raw_bp
from applications.view.goodsfiles.auxiliary import bp as aux_bp
from applications.view.goodsfiles.packaging import bp as packaging_bp
from applications.view.goodsfiles.finished import bp as finished_bp
from applications.view.goodsfiles.intermediate import bp as inter_bp
# 创建sys
goodsfiles_bp = Blueprint('goodsfiles', __name__, url_prefix='/goodsfiles')


def register_goodsfiles_bps(app: Flask):
    # 在admin_bp下注册子蓝图
    goodsfiles_bp.register_blueprint(raw_bp)
    goodsfiles_bp.register_blueprint(aux_bp)
    goodsfiles_bp.register_blueprint(packaging_bp)
    goodsfiles_bp.register_blueprint(finished_bp)
    goodsfiles_bp.register_blueprint(inter_bp)

    app.register_blueprint(goodsfiles_bp)